﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Atom.BLL;
using Atom.Entity;
using Atom.Common;

using Atom.BLL.Medicare;
using Atom.Entity.Medicare.Model;
using Atom.Interface.DataAccess;
using Atom.BLL.HIS;

namespace MedicalReport
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //TestBLL bll = new TestBLL();
            //List<TestEntity> li = bll.GetAll();

            //CommonDataBLL bll = new CommonDataBLL();
            //DataSet ds= bll.GetAll();
           // MessageBox.Show(ds.Tables[0].Rows[0][1].ToString());

            //MessageBox.Show(li[0].Name);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //var resourceProvider = ResourceProviderFactory.GetResourceProvider();
            //MessageBox.Show(resourceProvider.ToString());

            //resourceProvider = ResourceProviderFactory.GetResourceProvider("XmlProvider");
            //MessageBox.Show(resourceProvider.ToString());


            //resourceProvider = ResourceProviderFactory.GetResourceProvider("DbProvider");
            //MessageBox.Show(resourceProvider.ToString());

            //FoxProDataAccess d = new FoxProDataAccess();
            //MessageBox.Show( d.OpenConn().ToString());

            //BAF1Entity entity = new BAF1Entity();
            //entity.BAZA01 = "2";
            //entity.BAF102 = 1;
            //entity.BAF103 = "2";

            //entity.BAF104 = "2";
            //entity.BAF105 = "2";
            //entity.BAF106 = "2";
            //entity.BAF107 = "2";
            //entity.BAF112 = "2";
            //entity.BAF112 = "2";
  

            //BLLCreator.Create<BAF1BLL>().Add(entity);

            MessageBox.Show( OtherDataAccessFactory.Instance().GetCount().ToString());

        }
    }
}
